/*
 COPYRIGHT 2009 ESRI

 TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
 Unpublished material - all rights reserved under the
 Copyright Laws of the United States and applicable international
 laws, treaties, and conventions.

 For additional information, contact:
 Environmental Systems Research Institute, Inc.
 Attn: Contracts and Legal Services Department
 380 New York Street
 Redlands, California, 92373
 USA

 email: contracts@esri.com
 */
//>>built
define("esri/dijit/geoenrichment/formatVariable",["dojo/number"],function(c){return function(a,b){var d=a.decimals||0;switch(a.units){case "pct":return c.format(b/100,{places:d,type:"percent"});case "currency":return c.format(b,{places:d,type:"currency",symbol:a.symbol||"$"});default:return"esriFieldTypeDouble"==a.type?c.format(b,{places:d}):b}}});